/**
 * 
 */
package org.vsg.common.pagination.apps;

import java.util.Properties;


/**
 * @author Bill Vison
 *
 */
public class WebApplicationFactory extends AbstractPaginationApplicationFactory{
	
	private final static WebApplicationFactory factory = new WebApplicationFactory();
	
	
	protected WebApplicationFactory() {
		
	}
	
	
	public static PaginationApplicationFactory getInstance() {
		return factory;
	}


	/* (non-Javadoc)
	 * @see org.vsg.commons.util.pagination.apps.PaginationApplicationFactory#getApplication(java.util.Properties)
	 */
	public PaginationApplicationContext getApplication(Properties propes) throws PaginationApplicationContextException {
		// TODO Auto-generated method stub
		HttpPaginationApplicationContext application = new HttpPaginationApplicationContext();
		application.setConfiguration(propes);
		application.initializeConfiguration();
		return application;
	}	

	
	
}
